package com.example.emos.wx.service;

import com.example.emos.wx.db.pojo.TbRole;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * @ClassName RoleService
 * @Description TODO
 * @Author luowenhong
 * @Version 1.0
 **/
public interface RoleService {
    ArrayList<HashMap> searchRoleOwnPermission(Integer roleId);

    void insertRole(TbRole role);

    void updateRolePermission(TbRole role);

    ArrayList<HashMap> searchAllPermission();

    List<TbRole> searchAllRole();

    void deleteRoleById(int id);

}
